package org.fdy.common.framework.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * <p>说明：线程池配置类 </P>
 *
 * @author: fangdayang
 * @create: 2023-10-21 13:36
 **/

@Data
@Component
@ConfigurationProperties(prefix = "thread")
public class ThreadProperties {
    /**
     * 核心线程数
     */
    private Integer corePoolSize;

    /**
     * 最大线程数
     */
    private Integer maximumPoolSize;
    /**
     * 线程空闲存活时间
     */
    private Integer keepAliveTime;

    /**
     * 线程登录队列最大数
     */
    private Integer workQueue;

    /**
     * 线程名称的前缀
     */
    private String threadNamePrefix;
}
